package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VersionsUpgradeMapper;
import com.ruoyi.system.domain.VersionsUpgrade;
import com.ruoyi.system.service.IVersionsUpgradeService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-30
 */
@Service
public class VersionsUpgradeServiceImpl implements IVersionsUpgradeService 
{
    @Autowired
    private VersionsUpgradeMapper versionsUpgradeMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public VersionsUpgrade selectVersionsUpgradeById(Long id)
    {
        return versionsUpgradeMapper.selectVersionsUpgradeById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param versionsUpgrade 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<VersionsUpgrade> selectVersionsUpgradeList(VersionsUpgrade versionsUpgrade)
    {
        return versionsUpgradeMapper.selectVersionsUpgradeList(versionsUpgrade);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param versionsUpgrade 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertVersionsUpgrade(VersionsUpgrade versionsUpgrade)
    {
        return versionsUpgradeMapper.insertVersionsUpgrade(versionsUpgrade);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param versionsUpgrade 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateVersionsUpgrade(VersionsUpgrade versionsUpgrade)
    {
        return versionsUpgradeMapper.updateVersionsUpgrade(versionsUpgrade);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVersionsUpgradeByIds(Long[] ids)
    {
        return versionsUpgradeMapper.deleteVersionsUpgradeByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVersionsUpgradeById(Long id)
    {
        return versionsUpgradeMapper.deleteVersionsUpgradeById(id);
    }

    @Override
    public List<VersionsUpgrade> findVersion() {
        return  versionsUpgradeMapper.findVersion();
    }
}
